package main

import (
	"control"
	"github.com/gin-gonic/gin"
	_ "github.com/jinzhu/gorm/dialects/mysql"
)

func main() {
	r := gin.Default()
	r.StaticFile("/","./templates/index.html")
	r.POST("/enroll", control.Enroll)
	r.POST("/sign", control.SignIn)
	r.GET("/sure/:key", control.DealSure)
	r.GET("/list",control.RootGet)
	r.GET("/status",control.GetStatus);
	r.POST("/delete",control.RootDelete);
	r.POST("/change",control.PwdChange)
	r.Run(":5206")
}
